package com.sdry.service.impl.zc;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdry.mapper.zc.ZcTestMapper;
import com.sdry.model.zc.ZcInspectionEntity;
import com.sdry.model.zc.ZcParetsTestEntity;
import com.sdry.model.zc.ZcQueryCriteria;
import com.sdry.model.zc.ZcTestDetailsEntity;
import com.sdry.model.zc.ZcTestEntity;
import com.sdry.service.zc.ZcTestService;
/**
 * 
 * @ClassName:    ZcTestServiceImpl   
 * @Description:  生产配件检验
 * @Author:       zc   
 * @CreateDate:   2018年9月27日 上午10:07:03   
 * @Version:      v1.0
 */
@Service
public class ZcTestServiceImpl implements ZcTestService {
	@Resource
	private ZcTestMapper ztMapper;
	/**
	 * 查找报检单列表
	 */
	@Override
	public List<ZcInspectionEntity> selectInspectionList() {
		return ztMapper.selectInspectionList();
	}
	/**
	 * 查找报检单
	 */
	@Override
	public ZcInspectionEntity selectInspection(ZcQueryCriteria zqc) {
		return ztMapper.selectInspection(zqc);
	}
	/**
	 * 保存检验单
	 */
	@Override
	public int insertParetsTest(ZcParetsTestEntity zcParetsTestEntity) {
		return ztMapper.insertParetsTest(zcParetsTestEntity);
	}
	/**
	 * 保存检验单详情
	 */
	@Override
	public int insertTestDetails(ZcTestDetailsEntity zcTestDetailsEntity) {
		return ztMapper.insertTestDetails(zcTestDetailsEntity);
	}
	/**
	 * 保存质检单（待处置单）
	 */
	@Override
	public int insertTest(ZcTestEntity zcTestEntity) {
		return ztMapper.insertTest(zcTestEntity);
	}
	/**
	 * 通过日期查找检验记录
	 */
	@Override
	public List<ZcParetsTestEntity> selectTestLogList(ZcQueryCriteria zcQueryCriteria) {
		return ztMapper.selectTestLogList(zcQueryCriteria);
	}
	/**
	 * 通过日期查找检验记录数目
	 */
	@Override
	public int countTestLogList(ZcQueryCriteria zcQueryCriteria) {
		return ztMapper.countTestLogList(zcQueryCriteria);
	}
	/**
	 * 通过配件检验单号查询检测详情
	 */
	@Override
	public List<ZcTestDetailsEntity> selectTestLogDetailsList(ZcQueryCriteria zcQueryCriteria) {
		return ztMapper.selectTestLogDetailsList(zcQueryCriteria);
	}
	/**
	 * 通过配件检验单号查询检测详情数目
	 */
	@Override
	public int countTestLogDetailsList(ZcQueryCriteria zcQueryCriteria) {
		return ztMapper.countTestLogDetailsList(zcQueryCriteria);
	}
	
}
